package com.example.sourcecodelearning.feign;

import com.example.framework.common.pojo.R;
import com.example.sourcecodelearning.feign.dto.UserInfoRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

@FeignClient("user")
public interface UserFeign {

    @GetMapping("/user/getByUserId")
    R<UserInfoRespDto> getUserByUserId(@RequestParam("userId") String userId);

    @GetMapping("/user/getUserIds")
    R<Set<String>> getUserIds();

}
